Json

interface Json

A helper class that allows converting JavaScript objects into a JSON string and creating JavaScript objects from a JSON string.

When the web page is unloaded, all the JavaScript objects will be automatically disposed. Access to the already disposed JavaScript object will lead to the IllegalStateException.

Functions

Link copied to clipboard
abstract fun <T> parse(json: String): T
Creates an object that represents the result of parsing the given string in JSON format.
Link copied to clipboard
abstract fun stringify(jsObject: JsObject): String
Converts the given JavaScript object into a JSON string.